Optimal. Leaf size=551 \[ -\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {b \left (816 a^4+1696 a^2 b^2+5 b^4\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{1536 a^2 d \sqrt {a+b \sin (c+d x)}}+\frac {\left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right ) \Pi \left (2;\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{512 a^3 d \sqrt {a+b \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.26, antiderivative size = 551, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 11, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.355, Rules used = {2972, 3126,
3134, 3138, 2734, 2732, 3081, 2742, 2740, 2886, 2884} \begin {gather*} \frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}+\frac {b \left (816 a^4+1696 a^2 b^2+5 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{1536 a^2 d \sqrt {a+b \sin (c+d x)}}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{1536 a^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{512 a^3 d \sqrt {a+b \sin (c+d x)}}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 2972
Rule 3081
Rule 3126
Rule 3134
Rule 3138
Rubi steps
\begin {align*} \int \cot ^4(c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2} \, dx &=\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {\int \csc ^5(c+d x) (a+b \sin (c+d x))^{5/2} \left (\frac {5}{4} \left (28 a^2-3 b^2\right )+\frac {5}{2} a b \sin (c+d x)-\frac {5}{4} \left (24 a^2-b^2\right ) \sin ^2(c+d x)\right ) \, dx}{30 a^2}\\ &=\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {\int \csc ^4(c+d x) (a+b \sin (c+d x))^{3/2} \left (\frac {15}{8} b \left (52 a^2-5 b^2\right )-\frac {15}{4} a \left (4 a^2-b^2\right ) \sin (c+d x)-\frac {5}{8} b \left (164 a^2-5 b^2\right ) \sin ^2(c+d x)\right ) \, dx}{120 a^2}\\ &=\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {\int \csc ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (-\frac {45}{16} \left (16 a^4-56 a^2 b^2+5 b^4\right )-\frac {15}{8} a b \left (84 a^2-b^2\right ) \sin (c+d x)-\frac {15}{16} b^2 \left (276 a^2-5 b^2\right ) \sin ^2(c+d x)\right ) \, dx}{360 a^2}\\ &=-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {\int \frac {\csc ^2(c+d x) \left (-\frac {15}{32} b \left (720 a^4-176 a^2 b^2+15 b^4\right )-\frac {15}{16} a \left (48 a^4+720 a^2 b^2+b^4\right ) \sin (c+d x)-\frac {15}{32} b \left (48 a^4+936 a^2 b^2-5 b^4\right ) \sin ^2(c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{720 a^2}\\ &=-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {\int \frac {\csc (c+d x) \left (-\frac {45}{64} \left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right )-\frac {15}{32} a b \left (48 a^4+936 a^2 b^2-5 b^4\right ) \sin (c+d x)+\frac {15}{64} b^2 \left (720 a^4-176 a^2 b^2+15 b^4\right ) \sin ^2(c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{720 a^3}\\ &=-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}+\frac {\int \frac {\csc (c+d x) \left (\frac {45}{64} b \left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right )+\frac {15}{64} a b^2 \left (816 a^4+1696 a^2 b^2+5 b^4\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{720 a^3 b}-\frac {\left (b \left (720 a^4-176 a^2 b^2+15 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{3072 a^3}\\ &=-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}+\frac {\left (b \left (816 a^4+1696 a^2 b^2+5 b^4\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{3072 a^2}+\frac {\left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right ) \int \frac {\csc (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{1024 a^3}-\frac {\left (b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{3072 a^3 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}\\ &=-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (b \left (816 a^4+1696 a^2 b^2+5 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{3072 a^2 \sqrt {a+b \sin (c+d x)}}+\frac {\left (\left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {\csc (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{1024 a^3 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) \cot (c+d x) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d}-\frac {\left (16 a^4-56 a^2 b^2+5 b^4\right ) \cot (c+d x) \csc (c+d x) \sqrt {a+b \sin (c+d x)}}{256 a^2 d}+\frac {b \left (52 a^2-5 b^2\right ) \cot (c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^{3/2}}{192 a^2 d}+\frac {\left (28 a^2-3 b^2\right ) \cot (c+d x) \csc ^3(c+d x) (a+b \sin (c+d x))^{5/2}}{96 a^2 d}+\frac {b \cot (c+d x) \csc ^4(c+d x) (a+b \sin (c+d x))^{7/2}}{12 a^2 d}-\frac {\cot (c+d x) \csc ^5(c+d x) (a+b \sin (c+d x))^{7/2}}{6 a d}-\frac {b \left (720 a^4-176 a^2 b^2+15 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{1536 a^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {b \left (816 a^4+1696 a^2 b^2+5 b^4\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{1536 a^2 d \sqrt {a+b \sin (c+d x)}}+\frac {\left (64 a^6+720 a^4 b^2+60 a^2 b^4-5 b^6\right ) \Pi \left (2;\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{512 a^3 d \sqrt {a+b \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 16.60, size = 771, normalized size = 1.40 \begin {gather*} \frac {\left (\frac {\left (-720 a^4 b \cos (c+d x)+176 a^2 b^3 \cos (c+d x)-15 b^5 \cos (c+d x)\right ) \csc (c+d x)}{1536 a^3}+\frac {\left (-48 a^4 \cos (c+d x)+600 a^2 b^2 \cos (c+d x)+5 b^4 \cos (c+d x)\right ) \csc ^2(c+d x)}{768 a^2}+\frac {\left (164 a^2 b \cos (c+d x)-b^3 \cos (c+d x)\right ) \csc ^3(c+d x)}{192 a}+\frac {1}{96} \left (28 a^2 \cos (c+d x)-27 b^2 \cos (c+d x)\right ) \csc ^4(c+d x)-\frac {5}{12} a b \cot (c+d x) \csc ^4(c+d x)-\frac {1}{6} a^2 \cot (c+d x) \csc ^5(c+d x)\right ) \sqrt {a+b \sin (c+d x)}}{d}+\frac {-\frac {2 \left (192 a^5 b+3744 a^3 b^3-20 a b^5\right ) F\left (\frac {1}{2} \left (-c+\frac {\pi }{2}-d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{\sqrt {a+b \sin (c+d x)}}-\frac {2 \left (384 a^6+3600 a^4 b^2+536 a^2 b^4-45 b^6\right ) \Pi \left (2;\frac {1}{2} \left (-c+\frac {\pi }{2}-d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{\sqrt {a+b \sin (c+d x)}}-\frac {2 i \left (720 a^4 b^2-176 a^2 b^4+15 b^6\right ) \cos (c+d x) \cos (2 (c+d x)) \left (2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )+b \left (2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )-b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )\right ) \sqrt {\frac {b-b \sin (c+d x)}{a+b}} \sqrt {-\frac {b+b \sin (c+d x)}{a-b}}}{a \sqrt {-\frac {1}{a+b}} \sqrt {1-\sin ^2(c+d x)} \left (-2 a^2+b^2+4 a (a+b \sin (c+d x))-2 (a+b \sin (c+d x))^2\right ) \sqrt {-\frac {a^2-b^2-2 a (a+b \sin (c+d x))+(a+b \sin (c+d x))^2}{b^2}}}}{6144 a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2457\) vs.
\(2(608)=1216\).
time = 18.96, size = 2458, normalized size = 4.46
method | result | size |
default | \(\text {Expression too large to display}\) | \(2458\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F(-1)]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \text {Hanged} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________